<!--
 * @Author: Wang Yang
 * @Date: 2021-06-01 09:52:45
 * @LastEditors: Wang Yang
 * @LastEditTime: 2021-06-02 17:12:10
 * @Description: file content
-->
<template>
  <div>
    <van-button type="primary" to="/">home</van-button>
    <van-button type="success" to="/vuex">vuex</van-button>
    <van-button type="default" to="/axios">axios</van-button>
    <div class="color">这里测一下less-123</div>
    <HelloWorld></HelloWorld>
    <router-view></router-view>
  </div>
</template>

<script>
import HelloWorld from '@/components/HelloWorld.vue';
import wy from '@/assets/wy.json';

export default {
  components: {
    HelloWorld,
  },
  mounted() {
    console.log('这里直接可以引入json', wy);
  },
};
console.log(import.meta.env);
console.log(import.meta.env.MODE);
console.log(import.meta.env.VITE_API_URL);
</script>
<style lang="less" scoped>
.color {
  color: #f0f;
}
</style>
